<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@page import="java.util.*" %>
<%@ page import="com.lmpop.trade.ti_admin.*" %>
<%
		String user_id = "";
		if( session.getAttribute("session_user_id") != null )
		{
			user_id = session.getAttribute("session_user_id").toString();
		}
		String cust_id = "";
		if( session.getAttribute("session_cust_id") != null )
		{
			cust_id = session.getAttribute("session_cust_id").toString();
		}
		
		Ti_adminInfo ti_adminInfo = new Ti_adminInfo();
		List list = ti_adminInfo.getListByPk(user_id);
		Hashtable map = new Hashtable();
		if(list!=null && list.size()>0)
			 map = (Hashtable)list.get(0);
		
		String user_name="",real_name="",email="",msn="",qq="",cellphone="",fax="",phone="",remark="";
		if(map.get("user_name")!=null) user_name = map.get("user_name").toString();
		if(map.get("real_name")!=null) real_name = map.get("real_name").toString();
		if(map.get("email")!=null) email = map.get("email").toString();
		if(map.get("msn")!=null) msn = map.get("msn").toString();
		if(map.get("qq")!=null) qq = map.get("qq").toString();
		if(map.get("cellphone")!=null) cellphone = map.get("cellphone").toString();
		if(map.get("fax")!=null) fax = map.get("fax").toString();
		if(map.get("phone")!=null) phone = map.get("phone").toString();
		if(map.get("remark")!=null) remark = map.get("remark").toString();
%>
<html>
  <head>

    <title>基本信息修改</title>
		<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css"/>
		<script type="text/javascript" src="data.js"></script>
		<script type="text/javascript" src="/program/admin/js/judgment.js" charset="UTF-8"></script>
</head>

<body>
	
	<form action="/doTradeReg.do" method="post" name="addForm">
	<input name="user_id" id="user_id" type="hidden" value="<%=user_id%>" />
	<input name="cust_id" id="cust_id" type="hidden" value="<%=cust_id%>" />
	
	<table width="100%" cellpadding="1" cellspacing="1" border="0" class="listtab">
		<tr>
			<td align="right" width="20%">
				用户名:
			</td>
			<td><font color="#808069"><%=user_name%></font></td>
			<td align="right" width="20%">
				真实姓名<font color="red">*</font>
			</td>
			<td><input type="text" name="real_name" id="real_name" value="<%=real_name%>" maxlength="100" size="30" onkeyup="inputNoHorns(this)"   onbeforepaste= "inputNoHorns(this) "/></td>
		</tr>
		<tr>
			<td align="right" width="20%">
				手机:
			</td>
				<td><input type="text" name="cellphone" id="cellphone" value="<%=cellphone %>" maxlength="20" size="30" onkeyup="if(isNaN(this.value))this.value=''" onBlur="this.value=trim(this.value);"/></td>
			
			<td align="right" width="20%">
				邮箱:
			</td>
			<td><input type="text" name="email" id="email" value="<%=email %>" maxlength="60" size="30" onkeyup="inputNoHorns(this)"   onbeforepaste= "inputNoHorns(this) " onBlur="this.value=trim(this.value);"/></td>
		</tr>

		<tr>
			<td align="right" width="20%">
				MSN:
			</td>
			<td><input type="text" name="msn" id="msn" value="<%=msn %>" maxlength="60" size="30" onkeyup="inputNoHorns(this)"   onbeforepaste= "inputNoHorns(this) " onBlur="this.value=trim(this.value);"/></td>
			<td align="right" width="20%">
				QQ:
			</td>
			<td><input type="text" name="qq" id="qq" value="<%=qq %>" maxlength="20" size="30" onkeyup="if(isNaN(this.value))this.value=''" onBlur="this.value=trim(this.value);"/></td>
		</tr>
		<tr>
			<td align="right" width="20%">
				电话:
			</td>
			<td><input type="text" name="phone" id="phone" value="<%=phone %>" maxlength="20" size="30" onkeyup="inputNoHorns(this)"   onbeforepaste= "inputNoHorns(this) " onBlur="this.value=trim(this.value);"/></td>
			
			<td align="right" width="20%">
				传真:
			</td>
				<td><input type="text" name="fax" id="fax" value="<%=fax %>" maxlength="20" size="30" onkeyup="inputNoHorns(this)"   onbeforepaste= "inputNoHorns(this) "/></td>
		</tr>
		<tr>
			
			<td align="right" width="20%">
				备注:
			</td>
			<td colspan="3"><textarea  name="remark" id="remark"  rows="3" cols="70" onkeyup="inputNoHorns(this)"   onbeforepaste= "inputNoHorns(this) " onBlur="this.value=trim(this.value);" ><%=remark %></textarea> </td>
		</tr>
		
	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input type="hidden" name="bpm_id" value="9821" />
				<input class="buttoncss" type="button" name="tradeSub" value="提交" onclick="return checkform1()"/>&nbsp;&nbsp;
				<input class="buttoncss" type="button" name="tradeRut" value="返回" onclick="backa()"/>
			</td>
		</tr>
	</table>
	</form>
</body>

</html>
